package com.zhentao.model.pojo.par;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.zhentao.model.pojo.car.ChargeCarInfo;
import com.zhentao.model.pojo.user.ChargeUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName charge_par_orders
 */
@TableName(value ="charge_par_orders")
@Data
public class ChargeParOrders implements Serializable {
    /**
     * 订单id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户姓名
     */
    private String nickName;

    /**
     * 充电站id
     */
    private Integer chargeStationInfoId;

    /**
     * 优惠券id
     */
    private String marketId;

    /**
     * 车架号
     */
    private String vehicleIdentifyNo;

    /**
     * 应付款金额
     */
    private Double actualPrice;

    /**
     * 实际付款金额
     */
    private Double amout;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 状态 0:正常 1:删除
     */
    @TableLogic(value = "0", delval = "1")
    private Integer status;

    @TableField(exist = false)
    private ChargeUser chargeUser;

    @TableField(exist = false)
    private ChargeCarInfo chargeCarInfo;

    /**
     * 车牌号码
     */
    @TableField(exist = false)
    private String carNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
